<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>影城列表</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
<link rel="stylesheet"
	href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
	type="text/javascript"></script>
</head>

<body class="content1">
	<div class="header">
		<h1 class="page-title">影城管理</h1>
	</div>
	<ul class="breadcrumb">
		<li><a href="index.html">Home</a> <span class="divider">/</span>
		</li>
		<li class="active">影城列表</li>
	</ul>
	<div class="container-fluid">
		<div class="row-fluid">
			<form class="form-inline" method="get"
				action="<%=basePath%>film/filmcity/fcList">
				<input class="input-xlarge" placeholder="影城名..." name="sname"
					type="text" value="${param.sname}"> <input
					class="btn icon-search" type="submit" value="查询" /> <a
					class="btn btn-primary" href="<%=basePath%>film/filmcity/toaddFc"> <i
					class="icon-plus"></i> 添加影城
				</a>
			</form>

			<div class="well">
				<table class="table">
					<thead>
						<tr>
							<th>影城名</th>
							<th>状态</th>
							<th style="width: 90px;">操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${pager.list}" var="item">
							<tr>
								<td>${item.fcName}</td>
								<td>
									<c:choose>
										<c:when test="${item.fcState==\"1\"}">
												正常		
											</c:when>
										<c:otherwise>锁定</c:otherwise>
									</c:choose></td>
								<td>
									<a href="<%=basePath%>film/filmcity/toeditFc?fcId=${item.fcId}">编辑</a>
									&ensp; <a href="<%=basePath%>film/filmcity/deleteFc?fcId=${item.fcId}">删除</a>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
				<div class="pagination pagination-right">
					<ul>
						<li><a>共计：${pager.pagectrl.pagecount}页/${pager.pagectrl.rscount}条记录</a>
						</li>

						<li><c:if test="${pager.pagectrl.currentindex==1}" var="fp">
								<a style="disabled: true">上一页</a>
							</c:if> <c:if test="${!fp}">
								<a
									href="<%=basePath%>sys/book?cmd=booklist&index=${pager.pagectrl.currentindex-1}">上一页</a>
							</c:if></li>

						<c:forEach begin="${pager.pagectrl.minpage}" step="1"
							end="${pager.pagectrl.maxpage}" var="index">
							<li><c:if test="${pager.pagectrl.currentindex==index}"
									var="t">
									<a style="color: red; background-color: #bbb">${index}</a>
								</c:if> <c:if test="${!t}">
									<a href="<%=basePath%>sys/book?cmd=booklist&index=${index}">${index}</a>
								</c:if></li>
						</c:forEach>

						<li><c:if
								test="${pager.pagectrl.currentindex==pager.pagectrl.pagecount}"
								var="fp">
								<a style="disabled: true">下一页</a>
							</c:if> <c:if test="${!fp}">
								<a
									href="<%=basePath%>sys/book?cmd=booklist&index=${pager.pagectrl.currentindex+1}">下一页</a>
							</c:if></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
